package com.example.springbootweb_comprehensiveexample.service;

import com.example.springbootweb_comprehensiveexample.pojo.Emp;
import com.example.springbootweb_comprehensiveexample.pojo.PageBean;

import java.time.LocalDate;
import java.util.List;


public interface EmpService {

    PageBean page(Integer page, Integer pageSize, String name, Short gender, LocalDate begin, LocalDate end);

    void delete(List<Integer> ids);

    void add(Emp emp);

    Emp selectById(Integer id);

    void update(Emp emp);

    //登录
    Emp login(Emp emp);

    //退出登录
    void logout(String username, String password);
}
